package cn.edu.scau.chenmiaopeng.singleton;

public class Chairman {
	private static Chairman instance;
	private String chairmanName;
    private Chairman(String name) {
    	chairmanName = name;
    }
    public static Chairman getInstance(String name) {
    	if(instance == null && !name.equals(null)) {
    		instance = new Chairman(name);
    	}
    	return instance;
    }
    public String toString() {
    	return this.getClass().getSimpleName()+"@"+this.hashCode();
    }
}
